<!DOCTYPE html>
<html lang="zh-CN">
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<head>
    <meta charset="UTF-8">
    <title>用户登录</title>


    <link rel="stylesheet" href="../layui/css/layui.css">
    <style>

        body {

            background: url("../images/background.png") no-repeat;

            background-size: cover;
        }

        #login_form {
            width: 400px;
            height: 400px;
            margin: 80px auto;
            padding: 30px;
            background-color: #f2f2f2;
            opacity: 0.9;
        }

    </style>
</head>
<body>

<div id="wrapper">
    <div class="layui-container" id="login_form">

        <div>
            <h1 style="color: #ff0000">图书管理系统</h1>
            <br>
            <h2><font color="red">用户登录 </font>&nbsp;&nbsp;&nbsp;
                <a href="../User/signup.jsp">用户注册</a>&nbsp;&nbsp; &nbsp;
                <a href="../Admin/adminLogin.jsp">管理员登录</a>

            </h2>

            <br>

        </div>

        <form class="layui-" id="my_form" method="post" action="/UserLoginServlet">


            <div class="layui-form-item">
                <label class="layui-form-label">用户名:</label>
                <div class="layui-input-block">
                    <input type="text" name="username" id="username" autofocus
                           placeholder="请输入用户名" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">密 码:</label>
                <div class="layui-input-block">
                    <input type="password" name="password" id="password"
                           placeholder="请输入密码" autocomplete="off" class="layui-input">
                </div>
            </div>


            <div class="layui-form-item layui-col-md4 layui-col-md-offset4">
                <div><font color="red">${msg}</font></div>
                <button id="sub_btn" class="layui-btn layui-btn-normal">登录</button>

            </div>


        </form>

    </div>
</div>


</script>
</body>
</html>